package com.butterfly.hotkey.common.result;


import com.butterfly.hotkey.core.constant.NumConst;

/**
 * 分页参数
 *
 * @author butterfly
 */
public class PageParam {

    /**
     * 当前页
     */
    private Integer current;

    /**
     * 页码
     */
    private Integer pageSize;

    public Integer getCurrent() {
        return this.current == null ? NumConst.ONE : this.current;
    }

    public Integer getPageSize() {
        return this.pageSize == null ? NumConst.TWENTY : this.pageSize;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
